package com.itheima.d11_bufferedwriter;
import java.io.BufferedWriter;
import java.io.FileWriter;

/**
 * 缓冲字符输出流 BufferedWriter
 */
public class BufferedWriterDemo1 {
    public static void main(String[] args) {
        try(
                FileWriter fos = new FileWriter("day06-file-io\\src\\test04.txt",true);
                BufferedWriter bw = new BufferedWriter(fos);
                ){
            //输出数据
            bw.write(97);
            bw.write("春江花月夜");
            bw.newLine();
            bw.write("倒悬山宁姚");
            bw.newLine();
            bw.write("大师兄左右");
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
